package com.bee.portal.service.sm.impl;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

import com.bee.base.entity.Page;
import com.bee.portal.dao.sm.ParameterDao;
import com.bee.portal.domain.sm.Parameter;
import com.bee.portal.service.sm.ParameterService;

public class ParameterServiceImpl implements ParameterService {

	private ParameterDao parameterDao;

	public void setParameterDao(ParameterDao parameterDao) {
		this.parameterDao = parameterDao;
	}

	@Override
	public Serializable save(Parameter entity) {
		return parameterDao.save(entity);
	}

	@Override
	public void saveAll(Collection<Parameter> entities) {
		parameterDao.saveAll(entities);
	}

	@Override
	public Parameter get(Long sid) {
		return parameterDao.get(sid);
	}

	@Override
	public List<Parameter> find(String queryString, Object... values) {
		return parameterDao.find(queryString, values);
	}

	@Override
	public List<Parameter> find(Parameter entity) {
		return parameterDao.find(entity);
	}

	@Override
	public List<Parameter> find(Map<String, String> params) {
		return parameterDao.find(params);
	}

	@Override
	public List<Parameter> findAll() {
		return parameterDao.findAll();
	}

	@Override
	public void update(Parameter entity) {
		parameterDao.update(entity);
	}

	@Override
	public void updateAll(Collection<Parameter> entities) {
		parameterDao.updateAll(entities);
	}

	@Override
	public void delete(Parameter entity) {
		parameterDao.delete(entity);
	}

	@Override
	public void delete(Long sid) {
		parameterDao.delete(sid);
	}

	@Override
	public void deleteAll(Collection<Parameter> entities) {
		parameterDao.deleteAll(entities);
	}

	@Override
	public Page page(String queryString, int pageNo, int pageSize) {
		return parameterDao.page(queryString, pageNo, pageSize);
	}

	@Override
	public Page page(Map<String, String> params, int pageNo, int pageSize) {
		return parameterDao.page(params, pageNo, pageSize);
	}

}
